composer create-project laravel/laravel example-app
cd example-app
php artisan serve
composer global require laravel/installer
laravel new example-app
cd example-app
php artisan serve
composer create-project --prefer-dist laravel/laravel blog "7.*"
After Installing Composer
composer create-project laravel/laravel myproject
//for authentication using jetstream etc.
composer require laravel/jetstream
//set database in .env file
php artisan migrate
php artisan serve
composer create-project laravel/laravel example-app
This will install with the latest version of laravel